package com.ahtcm.tcmlearning.dao;

import com.ahtcm.tcmlearning.model.BaseDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseDictionaryMapper {
    int deleteByPrimaryKey(Integer dicId);

    int insert(BaseDictionary record);

    int insertSelective(BaseDictionary record);

    BaseDictionary selectByPrimaryKey(Integer dicId);

    int updateByPrimaryKeySelective(BaseDictionary record);

    int updateByPrimaryKey(BaseDictionary record);

    /**
     * @description 按学科查找章节列表
     * @param subjectId
     * @author yangrongdeng
     * @return
     */
    List<BaseDictionary> subjectChapterList(@Param("subjectId") Integer subjectId);

}